package com.service.edu.controller;

import com.service.utils.ResultVo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
public class UserController {

    @PostMapping("login")
    public ResultVo login(){
        return ResultVo.ok().data("token","admin");
    }

    @GetMapping("info")
    public ResultVo info(){
        return ResultVo.ok().data("roles","超级管理员").data("name","admin").data("avatar","https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3095823371,2737858048&fm=26&gp=0.jpg");
    }

}
